import '@/utils/request.js'
// 广告区域展示位置1 为首页（默认值）2 为商品分类页
export const getSwiperList = (distributionSite = 1) => {
  return uni.request({
    url: '/home/banner',
    method: 'GET',
    data: { distributionSite },
  })
}

// 首页-前台分类-小程序
export const getCategoryList = () => {
  return uni.request({
    url: '/home/category/mutli',
    method: 'GET',
  })
}
// 首页-热门推荐-小程序
export const getHotList = () => {
  return uni.request({
    url: '/home/hot/mutli',
    method: 'GET',
  })
}
// 猜你喜欢-小程序
export const getGoodGuessLikesList = (page = 1, pageSize = 10) => {
  return uni.request({
    url: '/home/goods/guessLike',
    method: 'GET',
    data: { page, pageSize },
  })
}
